<template>
	<view><view class="item" v-for="(item,index) in data"> 
		<view class="name">
			{{item.nm}}
		</view>
		<view class="img">
			<image :src="item.img" mode=""></image>
		</view>
		<view class="video">
			<video :src="item.videourl"></video>
		</view>
	</view>
	</view>
	
</template>
<script setup>
	import {
		ref
	} from 'vue'
	import {
		onLoad
	} from '@dcloudio/uni-app'
	import {
		CONFIG
	} from '../../utils/config';
	import {
		userStore
	} from '../../store/userStore';
	import {data} from "@/utils/data.js"
	let store = userStore()
	onLoad(() => {
		getMovieList()
	})
    async function getMovieList(){
	let res =await uni.$get("https://wx.maoyan.com/mmdb/movie/v2/list/hot.json")
	console.log(res)
}
</script>
<style scoped>
/* 基本的容器样式 */

</style>